package 抽象工厂模式;

public class 抽象工厂模式 {
    public static void main(String[] args) {
        SoftWareFactory windowsFactory=new WindowsFactory();
        windowsFactory.createOS().run();
        windowsFactory.openApp().open();

        SoftWareFactory linuxFactory=new LinuxFactory();
        linuxFactory.createOS().run();
        linuxFactory.openApp().open();
    }
}
